import { stateType as adminStateType } from './modules/admin'
import { stateType as touristStateType } from './modules/tourist'

export const createStore = () => {
  const store = {
    userinfo: {
      name: '张三',
      age: 12,
    },
    loading: true,
  }
  return store
}

type userModulesType = {
  admin: adminStateType,
  tourist: touristStateType,
}

export type userState = ReturnType<typeof createStore> & userModulesType;